--
-- created with TexturePacker (http://www.texturepacker.com)
--
-- $TexturePacker:SmartUpdate:393d24547afd3c2d38292985ae47beeb$
--
-- local sheetInfo = require("myExportedImageSheet") -- lua file that Texture packer published
--
-- local myImageSheet = graphics.newImageSheet( "ImageSheet.png", sheetInfo:getSheet() ) -- ImageSheet.png is the image Texture packer published
--
-- local myImage1 = display.newImage( myImageSheet , sheetInfo:getFrameIndex("image_name1"))
-- local myImage2 = display.newImage( myImageSheet , sheetInfo:getFrameIndex("image_name2"))
--

local SheetInfo = {}

SheetInfo.sheet =
{
    frames = {
    
        {
            -- character-1
            x=92,
            y=2,
            width=96,
            height=172,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 96,
            sourceHeight = 171
        },
        {
            -- character-2
            x=174,
            y=176,
            width=104,
            height=170,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 104,
            sourceHeight = 169
        },
        {
            -- character-3
            x=2,
            y=2,
            width=88,
            height=174,

        },
        {
            -- character-4
            x=76,
            y=178,
            width=96,
            height=172,

        },
        {
            -- character-5
            x=282,
            y=2,
            width=108,
            height=168,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 107,
            sourceHeight = 167
        },
        {
            -- character-6
            x=392,
            y=2,
            width=100,
            height=166,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 99,
            sourceHeight = 166
        },
        {
            -- character-7
            x=190,
            y=2,
            width=90,
            height=170,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 90,
            sourceHeight = 169
        },
        {
            -- character-8
            x=2,
            y=178,
            width=72,
            height=174,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 71,
            sourceHeight = 173
        },
    },
    
    sheetContentWidth = 512,
    sheetContentHeight = 512
}

SheetInfo.frameIndex =
{

    ["character-1"] = 1,
    ["character-2"] = 2,
    ["character-3"] = 3,
    ["character-4"] = 4,
    ["character-5"] = 5,
    ["character-6"] = 6,
    ["character-7"] = 7,
    ["character-8"] = 8,
}

function SheetInfo:getSheet()
    return self.sheet;
end

function SheetInfo:getFrameIndex(name)
    return self.frameIndex[name];
end

return SheetInfo
